package com.sky.test.autoconfigure;

import org.springframework.beans.factory.InitializingBean;

public class CocaColaTestBean implements InitializingBean {


    private String name;

    private String address;


    /**
     * 初始化bean
     *
     * @throws Exception
     */
    @Override
    public void afterPropertiesSet() throws Exception {
        this.name = "Coke:" + getName();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
